package com.wispx.gateway.common.constant;

public interface LoadBalanceConstant {
    int VIRTUAL_NODE_NUM = 50;// 默认虚拟节点数
    String ROUND_ROBIN_LOAD_BALANCE_STRATEGY = "round_robin_load_balance_strategy"; //轮询
    String WEIGHT_LOAD_BALANCE_STRATEGY = "weight_load_balance_strategy"; // 权重
    String RANDOM_LOAD_BALANCE_STRATEGY = "random_load_balance_strategy"; //随机
    String GRAY_LOAD_BALANCE_STRATEGY = "gray_load_balance_strategy"; // 灰度
    String CLIENT_IP_LOAD_BALANCE_STRATEGY = "client_ip_load_balance_strategy"; // 根据用户IP
    String CLIENT_IP_CONSISTENT_HASH_LOAD_BALANCE_STRATEGY = "client_ip_consistent_hash_load_balance_strategy"; // 一致性哈希（根据用户IP的hash）
}
